import React, { Component } from 'react'
import { Button } from 'antd'
export default class componentName extends Component {
  render() {
    return (
      <div>
        <h2>路由传递参数</h2>
        <Button
          onClick={() => {
            this.props.history.push({
              pathname: '/y3',
              state: {
                test: '如果在y3页面看到我，说明参数传递成功',
                yinyin: '可以传递很多数据',
              },
            })
          }}
        >
          点击我，跳转路由Y3页面
        </Button>
      </div>
    )
  }
}
